﻿@model  Portal.Presentation.Models.CVViewModel
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

@if (@Model.CV != null && !@Model.IsCVUpToDate)
{
    <div class="alert alert-warning">
        <strong>CV has not been updated for the last 60 days!</strong>
    </div>
}

<h2 class="page-header">
    CV - @Model.DisplayName
</h2>

@if (@Model.CV != null)
{
    <div class="row">
        <div class="col-xs-9">
            @{Html.RenderPartial("_BackgroundPreview", @Model.CV.Background);}
            @{Html.RenderPartial("_ExperiencePreview", @Model.CV.Employers);}

         



            <div class="row">
                <div class="col-xs-9">
                    <h3><span class="label label-info">EDUCATION</span></h3>
                </div>

                <div class="col-xs-3 text-right">
                    <button type="button" class="btn btn-info btn-sm SectionButton" onclick="window.location = '/Education/Create'"><span class="glyphicon glyphicon-plus"></span>&nbsp;Add Education</button>
                </div>
            </div>
            <div class="row">
                <div class="col-xs-9">
                    <h3><span class="label label-primary">TRAINING AND CERTIFICATIONS</span></h3>
                </div>
                <div class="col-xs-3 text-right">
                    <button type="button" class="btn btn-primary btn-sm SectionButton" onclick="window.location = '/Certificate/Create'"><span class="glyphicon glyphicon-plus"></span>&nbsp;Add Certificate</button>
                </div>

            </div>

            <div class="row">
                <div class="col-xs-9">
                    <h3>
                        <span class="label label-warning">SKILLS SUMMARY</span>
                    </h3>
                </div>
                <div class="col-xs-3 text-right">
                    <button type="button" class="btn btn-warning btn-sm SectionButton" onclick="window.location = '/Skill/Create'"><span class="glyphicon glyphicon-plus"></span>&nbsp;Add Skill</button>
                </div>
            </div>
        </div>
        <div class="col-xs-3">
            @{Html.RenderPartial("_SnapshotPreview");}
        </div>
    </div>
}








